#ifndef __S_ST7789V_USER_H__
#define __S_ST7789V_USER_H__

typedef struct _forbidden_pixel
{
	unsigned int sx;
	unsigned int sy;
	unsigned int ex;
	unsigned int ey;
	struct _forbidden_pixel *next;
}forbidden_pixel;

// #define LVGL_DEFAULT_BACK_COLOR				61310

// extern forbidden_pixel f_p_t;

extern void s_st7789v_user_init(void);
extern void s_st7789v_user_set_pixel_arear(unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2);
extern void s_st7789v_user_set_pixel_arear_with_check(unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2);
extern void s_st7789v_user_start_set_pixel(void);
extern void s_st7789v_user_start_read_pixel(void);
extern void s_st7789v_user_set_pixel(unsigned short color);
extern void s_st7789v_user_set_pixel_with_check(unsigned short xnow, unsigned short ynow, unsigned short color);
extern void s_st7789v_user_fillall(unsigned short width, unsigned short height, unsigned short color);

extern signed char s_st7789v_user_set_pixel_add_forbiden_area(unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2);
extern signed char s_st7789v_user_set_pixel_del_forbiden_area(unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2);
#endif
